<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Hoonur</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" href="css/tabcontent.css">
	<link rel="stylesheet" type="text/css" href="css/validationEngine.jquery.css">
	<script type="text/javascript" src="includes/javascript/tabcontent.js"></script>
	<script type="text/javascript" src="includes/javascript/jquery.validationEngine.js"></script>
	<script type="text/javascript" src="includes/javascript/jquery.validationEngine-en.js"></script>
	<script type="text/javascript" src="includes/javascript/jquery.validationEngine-es.js"></script>
	<script type="text/javascript" src="includes/javascript/jquery.validationEngine-fr.js"></script>
	<script type="text/javascript" src="includes/javascript/jquery.validationEngine-pt.js"></script>
	<script>	
		$(document).ready(function() {

			$("#formID").validationEngine()
		
			
			//$.validationEngine.loadValidation("#date")
			//alert($("#formID").validationEngine({returnIsValid:true}))
			//$.validationEngine.buildPrompt("#date","This is an example","error")	 		 // Exterior prompt build example
			//$.validationEngine.closePrompt(".formError",true) 							// CLOSE ALL OPEN PROMPTS
		});
		
		// JUST AN EXAMPLE OF CUSTOM VALIDATI0N FUNCTIONS : funcCall[validate2fields]
		function validate2fields(){
			if($("#firstname").val() =="" ||  $("#lastname").val() == ""){
				return false;
			}else{
				return true;
			}
		}
	</script>	

</head>
<body>
<center>
<div id="maindiv">    

	
	
<?php

	$title = "Settings";

	require('includes/header.php');

	$getName = mysql_query("select * from users where user_id = " . $_SESSION['user_id']);

	$row = mysql_fetch_array($getName);

	$mail = mysql_query("select * from mail_settings where user_id = " . $_SESSION['user_id']);

	$getMail = mysql_fetch_array($mail);

	$phyDetails = mysql_query("select * from physical_details  where user_id = " . $_SESSION['user_id']);

	$getPhyDetails = mysql_fetch_array($phyDetails);

	$user_shared = mysql_query("select * from user_shared where user_id = ". $_SESSION['user_id']);

	$get_user_shared = mysql_fetch_array($user_shared);

?>

<div id="wrapperSettings">

	<div id="mobiletabs" class="indentmenu">

		<ul>
			<li><a href="#" rel="changeUsername" class="selected">Change Username</a></li>
			<li><a href="#" rel="changePassword">Change Password</a></li>
			<li><a href="#" rel="emailSettings">Email Settings</a></li>
			<li><a href="#" rel="personalDetails">Personal Details</a></li>
			<li><a href="#" rel="physicalDetails">Physical Details</a></li>
			<li><a href="#" rel="myPageSettings">My Page Settings</a></li>
			<li><a href="#" rel="feedsSettings" id='last'>Feeds Settings</a></li>
			<li><a href="#" rel="socialNetworks" id='last'>Social Networks</a></li>

		</ul>
		<br style="clear: left" />

	</div>

	<div class="tab">

		<div id="changeUsername" class="tabcontent">

			<?php include('changeUsername.php');?>

		</div>

		<div id="changePassword" class="tabcontent">

			<?php include('changePassword.php');?>

		</div>

		<div id="emailSettings" class="tabcontent">

			<?php include('emailSettings.php');?>

		</div>

		<div id="personalDetails">
			
			<?php include('personalDetails.php');?>

		</div>
		

		<div id="physicalDetails" class="tabcontent">

			<?php include('physicalDetails.php');?>

		</div>


		<div id="myPageSettings" class="tabcontent">

			<?php include('myPageSettings.php');?>

		</div>

		<div id="feedsSettings" class="tabcontent">

			<?php include('feedsSettings.php');?>

		</div>

		<div id="socialNetworks" class="tabcontent">

			<?php include('socialNetworks.php');?>

		</div>

		</div>

		<script type="text/javascript">

		var mypets=new ddtabcontent("mobiletabs")
		mypets.setpersist(true)
		mypets.setselectedClassTarget("#changeUsername")
		mypets.init()

		</script>
	</div>

</div><br/>

<?php

	require('includes/adBanner.php');

	require('includes/footer.php');

?>


</div>


</center>

<body>
</html>